package com.shine.app.ui;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.shine.app.AppManager;
import com.shine.app.BaseActivity;
import com.shine.app.R;
import com.shine.app.inject.InjectView;
import com.shine.app.inject.Injector;

public class RegisterSuccessActivity extends BaseActivity implements
		OnClickListener {

	@InjectView(R.id.login)
	private Button loginButton;

	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.registersuccess);
		Injector.get(this).inject();
		loginButton.setOnClickListener(this);
	}

	@Override
	public void onClick(View view) {
		if (loginButton == view) {
			loginButton.startAnimation(buttonAnimations);
			AppManager.getAppManager().finishActivity();
			overridePendingTransition(R.anim.anim, R.anim.slide_out_down);
		}
	}
}
